package com.andy.basics;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;



@Component
public class GenericDao extends Dao<Entity> {

	@Autowired
	private ClassMapper classMapper;

	@Transactional
	public void initialize(final Collection<? extends Entity> entities) {
		entities.size();
	}

	public ClassMapper getClassMapper() {
		return this.classMapper;
	}

}
